package sprinklerbee.service;

import java.util.Map;
import sprinklerbee.dao.SensorDAO;
import sprinklerbee.dao.SensorDAOImpl;
import sprinklerbee.model.SensorRealTime;;

public class SensorService {
	
	private SensorDAO sensorDAO=new SensorDAOImpl();
	
	public SensorRealTime getSensorRealTime(){
		return sensorDAO.querySensor();
	}
	
	public boolean updateSensor(Map<String, String> map) throws RuntimeException{
		return sensorDAO.updateSensor(map);
	}

}
